#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

int main()
{
	int a[5] = { 1,2,3,4,5 };
	int sz = sizeof(a) / sizeof(a[0]);
	SListNode* plist = NULL;
	for (int i = 0; i < sz; i++)
	{
		SListPushBack(&plist, a[i]);//12345
	}
	for (int i = 0; i < sz; i++)
	{
		SListPushFront(&plist, a[sz-1-i]);//1234512345
	}
	SListPopBack(&plist);//123451234
	SListPopFront(&plist);//23451234
	//SListNode* pos = SListFind(plist,3); 
	//SListInsertAfter(pos, 100);


	//SListEraseAfter(pos);
	SListPrint(plist);
	//SListDestory(&plist);
	return 0;
}